#pragma once
#include "sdl_sub.h"

typedef std::basic_string<Uint16, std::char_traits<Uint16>, std::allocator<Uint16> > u16string;

class sdl_text :
	public image
{
public:
	sdl_text(void);
	~sdl_text(void);
	void init(char * in_font,SDL_Surface * in_screen, int in_size = 20, int in_r = 255, int in_g = 255, int in_b = 255);

	SDL_Surface * get_text(std::wstring input_text);
	SDL_Surface * get_text(std::wstring input_text, int in_r, int in_g, int in_b);

	int sdl_text::set(std::wstring input_text);
	int sdl_text::set(std::wstring input_text,int x, int y);
	int sdl_text::set(std::wstring input_text,int x, int y, int in_r, int in_g, int in_b);

	TTF_Font * font;
	char * font_name;
	int font_size;
	SDL_Color textColor;
	SDL_Surface * text;
	
};
